package com.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/* 读取表结构信息 */
public class User extends BaseEntity{
    
    public User() {

    }
    
    /* ID  */
    private String id;
    /* 账号  */
    private String username;
    /* 密码  */
    private String password;
    /* 姓名  */
    private String name;
    /* 电话号  */
    private String phone;
    /* 照片  */
    private String photo;
    /* 性别  */
    private String sex;
    /* 身份证号  */
    private String idcard;
    /* 年龄  */
    private Integer age;
    /* 身份 0用户 1客服 2管理员  */
    private Integer type;
    /* 出生日期  */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")        
    private Date birth;
    private BigDecimal money;

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public String getId() {
        return this.id;
    }
    public String getUsername() {
        return this.username;
    }
    public String getPassword() {
        return this.password;
    }
    public String getName() {
        return this.name;
    }
    public String getPhone() {
        return this.phone;
    }
    public String getPhoto() {
        return this.photo;
    }
    public String getSex() {
        return this.sex;
    }
    public String getIdcard() {
        return this.idcard;
    }
    public Integer getAge() {
        return this.age;
    }
    public Integer getType() {
        return this.type;
    }
    public Date getBirth() {
        return this.birth;
    }
   
    public void setId(String id) {
        this.id = id;
    }
    public void setUsername(String username) {
        this.username = username;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    public void setName(String name) {
        this.name = name;
    }
    public void setPhone(String phone) {
        this.phone = phone;
    }
    public void setPhoto(String photo) {
        this.photo = photo;
    }
    public void setSex(String sex) {
        this.sex = sex;
    }
    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }
    public void setAge(Integer age) {
        this.age = age;
    }
    public void setType(Integer type) {
        this.type = type;
    }
    public void setBirth(Date birth) {
        this.birth = birth;
    }
  
}